const { ccclass, property } = cc._decorator;

@ccclass
export default class moduleBase {


    //获取单例  唯一实例
    public getInstance(...param): any {
        let Class: any = this;
        if (!Class.instance) {
            Class.instance = new Class(...param);
            Class.instance();
        }
        return Class.instance;
    }

    // update (dt) {}
}
